import request from '@/utils/request'
// export function getAttrData(data) {
//   return request({
//     url: '/profession/admin/getAttrData',
//     method: 'get',
//     data
//   })
// }
export function getAttrData(query) {
  return request({
    url: '/profession/admin/getAttrData',
    method: 'get',
    params: query
  })
}
export function getAddressList(query) {
  return request({
    url: '/address/api/getAddressList',
    method: 'get',
    params: query
  })
}
export function uploadImage(data) {
  return request({
    url: '/upload/image',
    method: 'post',
    data
  })
}
export function getCarcardInfo(data) {
  return request({
    url: '/profession/admin/resume/getCarcardInfo',
    method: 'post',
    data
  })
}
export function addResume(data) {
  return request({
    url: '/profession/admin/resume',
    method: 'post',
    data
  })
}

export function addCompany(data) {
  return request({
    url: '/profession/admin/company',
    method: 'post',
    data
  })
}
export function companyDetails(id) {
  return request({
    url: '/profession/admin/company/'+id,
    method: 'get',
  })
}

export function addPost(data) {
  return request({
    url: '/profession/admin/post',
    method: 'post',
    data
  })
}
//show_type&type_key&value_key&parent_id
export function getTagAllData(data) {
  return request({
    url: '/profession/admin/getTagAllData',
    method: 'get',
    params:data
  })
}
